import { SubStateMachine } from "./SubStateMachine";
import { DIRECTION_ORDER_ENUM, PARAMS_NAME_ENUM } from "../Enums";

const BASE_URL = "player/turnleft";

export default class DirectionSubStateMachine extends SubStateMachine {

    run() {
        const value = this.fms.getParams(PARAMS_NAME_ENUM.DIRECTION)
        this.currentState = this.stateMachine.get(DIRECTION_ORDER_ENUM[value as number])
    }

}